const KoaRouter = require('@koa/router')

const loginRouter = new KoaRouter({ prefix: '/login' })
const loginController = require('../controller/login.controller')
const { verifyLogin, verifyAuthorization } = require('../middleware/login.middleware')

loginRouter.post('/',verifyLogin,loginController.sign)

loginRouter.get('/test',verifyAuthorization,loginController.test)

module.exports = loginRouter